import {type} from 'config/upload';
import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  showMode?: boolean;
  blacklistModel?: boolean;
  current: number;
  tabList: [];
  titleList: [];
  postList: [];
  leftData: []; // 左边的数据
  rightData: []; // 右边的数据
  selectId: string;
  pageNum?: number;
  totalPages?: number;
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;
//create by moon https://github.com/creasy2010/moon

export type ITabProps = {};
export type ITabState = {};

export type IPostProps = {};
export type IPostState = {
  refresherTriggered: boolean;
  clickLikeVal: boolean;
  loadingList: boolean;
  end: boolean;
};
